package com.deer.wms.base.system.dao.plan;

import com.deer.wms.base.system.model.plan.SchedulePlan;
import com.deer.wms.common.core.commonMapper.Mapper;

import java.util.List;

public interface SchedulePlanMapper extends Mapper<SchedulePlan> {

    public List<SchedulePlan> selectPlanList(SchedulePlan plan);

    /**
     * 根据ID查询
     * @param PId
     * @return
     */
    SchedulePlan findByPid(Integer PId);

    /**
     * 条件查询
     * @param schedulePlan
     * @return
     */
    List<SchedulePlan> findList(SchedulePlan schedulePlan);

    /**
     * 通过ID删除单个
     * @param PId
     * @return
     */
    int delectBarCodeByPid(Integer PId);

    /**
     * 批量删除
     * @param PIds
     * @return
     */
    int delectBarCodeByPids(String[] PIds);

    /**
     * 修改
     * @param schedulePlan
     * @return
     */
    int updateSchedulePlan(SchedulePlan schedulePlan);

    /**
     * 增加
     * @param schedulePlan
     * @return
     */
    int saveSchedulePlan(SchedulePlan schedulePlan);
}